#pragma once
#include "surface.h"

#include "curve.h"

class RevolutionSurface : public Surface
{
public:
	RevolutionSurface(int slices);

	RevolutionSurface(const char* texturePath,int slices);

	virtual ~RevolutionSurface();

	void Update(float dt,const Curve& curve);

	Type GetType() {return Surface::Type::REVOLUTION;}

private:
	void loadIndexArray();
	void loadVertexArray();
	void loadTextureCoordArray();
	void loadNormalArray();

private:
	ListPoints3D m_curvePoints;

};

